﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Nxg.Blog.Core.Documents {
    public class Author {
        [Key, DatabaseGenerated (DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        public string HashedPassword { get; set; }

        [Required, EmailAddress]
        public string Email { get; set; }

        [Required, MaxLength (10)]
        public string DisplayName { get; set; }

        [Required, MaxLength (200)]
        public string Roles { get; set; }
    }
}